/*
	sample_scarlett_test2.red
	
	This Scarlett program was created by Scarlett and searches her favorite poem by Shel Silverstein
	for certain strings and writes to files.
*/

show 'hi my name is scarlett and i like shel silverstein'

save 'There is a place where the sidewalk ends And before the street begins And there the grass grows soft and white And there the sun burns crimson bright And there the moon-bird rests from his flight To cool in the peppermint wind Let us leave this place where the smoke blows black And the dark street winds and bends Past the pits where the asphalt flowers grow We shall walk with a walk that is measured and slow And watch where the chalk-white arrows go To the place where the sidewalk ends Yes well walk with a walk that is measured and slow And well go where the chalk-white arrows go For the children, they mark, and the children they know The place where the sidewalk ends ' into wherethesidewalkends
show 'i am about to write to some files too\n \n'

save 'flowers' into flowers
save 'And the dark street winds and bends' into poem


if wherethesidewalkends contains poem then
  show 'this is the poem i like - '
  show '\n'
  show wherethesidewalkends
else
  show 'this is a fake'
end if


if wherethesidewalkends contains flowers then
write wherethesidewalkends into file:///C:/poem.txt    
else
write 'scarlett roses' into file:///C:/flowers.txt
end if



